#example7_2_read_online.py
#coding=utf-8
import pandas as pd
#path='iris.data'
path="http://archive.ics.uci.edu/ml/" + \
    "machine-learning-databases/iris/iris.data"
df=pd.read_csv(path,sep=',',nrows=3,header=None) #读取前3行
print(df)
df.to_csv("iris存储为csv文件.csv",
          index=False,      # 不存储行索引
          header=False)     # 不存储列标题
